/*
  引入并暴露
    export { default as trademark } from './product/trademark'
  相当于
    (1)引入: import { default as trademark } from './product/trademark'
    (2)暴露(部分暴露): export trademark

    trademark 是一个对象,即
      trademark = {
        delete(){},
        addOrUpdate(){},
        getPageList(){}
      }
*/
// 不能简写省略 default
export { default as trademark } from './product/trademark'
export { default as attr } from './product/attr'
export { default as category } from './product/category'
export { default as spu } from './product/spu'
export { default as sku } from './product/sku'

export { default as permission } from './acl/permission'
export { default as role } from './acl/role'
export * as user from './acl/user'

/*
  暴露多个模块的 API 时,最终该 index.js 文件暴露出去的数据格式为
    {
      trademark: {},
      attr: {},
      ...
    }
  然后在 main 文件中就可以
    import * as $API from '@/api'
*/

// index.js 其实就是把不同的模块当中接口请求函数整合到同一个文件进行一次性暴露,这样就可以直接获取到所有的接口请求函数,进行统一的处理